using System.Runtime.CompilerServices;

namespace Beetle;

public class ObjectArraySegment<T>
{
	[CompilerGenerated]
	private T[] a;

	[CompilerGenerated]
	private int b;

	[CompilerGenerated]
	private int c;

	public T[] Array
	{
		[CompilerGenerated]
		get
		{
			return a;
		}
		[CompilerGenerated]
		internal set
		{
			a = value;
		}
	}

	public int Offset
	{
		[CompilerGenerated]
		get
		{
			return b;
		}
		[CompilerGenerated]
		internal set
		{
			b = value;
		}
	}

	public int Count
	{
		[CompilerGenerated]
		get
		{
			return c;
		}
		[CompilerGenerated]
		internal set
		{
			c = value;
		}
	}

	public ObjectArraySegment()
	{
	}

	public ObjectArraySegment(int count)
	{
		Array = new T[count];
	}

	public void SetArray(T[] data, int offset, int count)
	{
		Array = data;
		Offset = offset;
		Count = count;
	}

	public void SetArray(int offset, int count)
	{
		Offset = offset;
		Count = count;
	}
}
